/* 
 * Virtual Bank System - Layout CSS
 * Layout and structure styles
 */

/* Layout Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.page-content {
  padding: var(--spacing-lg);
}

/* Main Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.main-container {
  display: flex;
  flex: 1;
}

/* Header Styles */
.header {
  height: 64px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
}

.logo img {
  height: 36px;
  margin-right: var(--spacing-sm);
}

.header-nav {
  display: flex;
  margin-left: auto;
}

.header-nav-item {
  padding: 0 var(--spacing-md);
  color: white;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-sm);
}

.user-info {
  display: flex;
  align-items: center;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  background-color: white;
  box-shadow: var(--card-shadow);
  transition: width 0.3s;
  position: fixed;
  height: calc(100vh - 64px);
  top: 64px;
  overflow-y: auto;
  z-index: 900;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-account-info {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-account-balance {
  margin-top: var(--spacing-sm);
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
}

.sidebar-menu {
  list-style: none;
  padding: var(--spacing-md) 0;
}

.sidebar-menu-item {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-color);
  transition: background-color 0.3s;
}

.sidebar-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.sidebar-menu-item.active {
  background-color: rgba(61, 133, 198, 0.1);
  color: var(--secondary-color);
  border-right: 3px solid var(--secondary-color);
}

.sidebar-menu-icon {
  margin-right: var(--spacing-md);
}

.sidebar-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

/* Content Styles */
.content {
  flex: 1;
  padding: var(--spacing-lg);
  padding-top: calc(64px + var(--spacing-lg));
  margin-left: 250px;
  transition: margin-left 0.3s;
}

.content.sidebar-collapsed {
  margin-left: 80px;
}

/* Footer Styles */
.footer {
  background-color: white;
  padding: var(--spacing-lg);
  text-align: center;
  border-top: 1px solid var(--divider-color);
}

.footer-links {
  margin-bottom: var(--spacing-md);
}

.footer-link {
  margin: 0 var(--spacing-sm);
  color: var(--text-color);
}

.footer-copyright {
  color: var(--light-text);
  font-size: 12px;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col {
  flex: 1;
  padding: 0 10px;
  min-width: 0;
}

.col-1 { flex: 0 0 8.33%; }
.col-2 { flex: 0 0 16.66%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.33%; }
.col-5 { flex: 0 0 41.66%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.33%; }
.col-8 { flex: 0 0 66.66%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.33%; }
.col-11 { flex: 0 0 91.66%; }
.col-12 { flex: 0 0 100%; }
